package com.youlai.boot.core.tenant.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.boot.core.tenant.model.entity.TenantApplication;
import com.youlai.boot.core.tenant.model.query.TenantApplicationPageQuery;
import com.youlai.boot.core.tenant.model.vo.TenantApplicationVO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 租户申请 Mapper
 *
 * @author haoxr
 * @since 3.0.0
 */
@Mapper
public interface TenantApplicationMapper extends BaseMapper<TenantApplication> {

    /**
     * 分页查询租户申请列表
     *
     * @param page  分页参数
     * @param query 查询条件
     * @return 租户申请分页数据
     */
    Page<TenantApplicationVO> listPagedApplications(Page<TenantApplicationVO> page, TenantApplicationPageQuery query);
}

